<layout name='Layout/layout_page' />
	
	<ol class="breadcrumb">
		<li><a href="<{:U('Order/index')}>">订单管理</a></li>
      	<li class="active">明细列表</li>
    </ol>

    <form class="form-inline" method="get" action="index.php">
  		<div class="form-group">
    		<label>产品：</label>
    		<select name="proName" id="proName" class="form-control input-sm">
    			<option value="">全部</option>
    			<option value="庞巴迪">庞巴迪</option>
    			<option value="贝加尔">贝加尔</option>
    			<option value="圣保罗">圣保罗</option>
    			<option value="爱丁堡">爱丁堡</option>
    		</select>
  		</div>
  		<div class="form-group">
    		<label>日期：</label>
    		<input type="text" name="startDate" id="startDate" class="form-control input-sm"> - <input type="text" name="endDate" id="endDate" class="form-control input-sm">
  		</div>
  		<script> 
		$(function(){
			$("#startDate" ).datepicker(); 		
			$("#endDate" ).datepicker(); 					
		});
		</script>
		<button type="submit" class="btn btn-default btn-sm">搜索</button>
		<input type="hidden" name="g" value="Admin" />
		<input type="hidden" name="m" value="Order" />
		<input type="hidden" name="a" value="detail" />
	</form>


	<p></p>

	<form id="ajaxForm" method="post" action="<{:U('Order/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-hover table-bordered" border="0" cellSpacing="0" cellPadding="0" width="100%">
	  <THEAD>
		<tr>
		  <TH>产品</TH> 
		  <TH>金额</TH>
		  <TH>订单编号</TH>
		  <TH>会员编号</TH>		  
		  <TH>联系人</TH> 
		  <TH>电话</TH> 
		  <TH>地址</TH> 
		  <TH>是否支付</TH> 
		  <TH>提交日期</TH>
		  <TH>操作</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><{$vo.pname}></td>
			  <td><{$vo.price}></td>
			  <td><{$vo.order_no}></td>			  
			  <td><{$vo.memberID}></td>			  
			  <td><{$vo.name}></td>	  
			  <td><{$vo.mobile}></td>	  
			  <td><{$vo.address}></td>	  
			  <td><eq name="vo.payStatus" value="0"><font color="red">未支付</font><else/><font color="green">已支付</font></eq></td>
              <td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
			  <td>
			  <a href="<{:U('Order/view' , array('id'=>$vo['id']))}>" class="btn btn-default btn-sm">订单详情</a>
			  </td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">		
		<div class="col-md-12">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<input type="hidden" id="menu_action" value="order" />

<script>
$(function(){
	$("#proName").val("<{$proName}>");
})
</script>